package com.caocaog.market.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.caocaog.market.entity.ShopPromo;

import java.util.List;

/**
 * 商品促销信息
 *
 * @author chechen
 * @date 2021-11-20
 */
public interface ShopPromoService extends IService<ShopPromo> {

    IPage<ShopPromo> queryShopPromoPage(Page<ShopPromo> page, ShopPromo shopPromo);

    String addShopPromo(ShopPromo shopPromo);

    int updateShopPromo(ShopPromo shopPromo);

    int deleteShopPromo(String id);

    int deleteBatchShopPromo(List<String> ids);

    int shopPromoStatusChange(String id);

    List<ShopPromo> selectShopPromoByShopId(String shopId);

    List<String> getShopPromoByShopId(String shopId);

}
